package com.example.demo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName supply
 */
@TableName(value ="supply")
public class Supply implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    @TableField("`desc`")
//    @TableField("\"desc\"")
    private String desc;

    /**
     * 
     */
    private String addr;

    /**
     * 
     */
    private String code;

    /**
     * 
     */
    private String tel;

    /**
     * 
     */
    private String contact;

    /**
     * 
     */
    private String credit;

    /**
     * 
     */
    private String inputTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public String getDesc() {
        return desc;
    }

    /**
     * 
     */
    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * 
     */
    public String getAddr() {
        return addr;
    }

    /**
     * 
     */
    public void setAddr(String addr) {
        this.addr = addr;
    }

    /**
     * 
     */
    public String getCode() {
        return code;
    }

    /**
     * 
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 
     */
    public String getTel() {
        return tel;
    }

    /**
     * 
     */
    public void setTel(String tel) {
        this.tel = tel;
    }

    /**
     * 
     */
    public String getContact() {
        return contact;
    }

    /**
     * 
     */
    public void setContact(String contact) {
        this.contact = contact;
    }

    /**
     * 
     */
    public String getCredit() {
        return credit;
    }

    /**
     * 
     */
    public void setCredit(String credit) {
        this.credit = credit;
    }

    /**
     * 
     */
    public String getInputTime() {
        return inputTime;
    }

    /**
     * 
     */
    public void setInputTime(String inputTime) {
        this.inputTime = inputTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Supply other = (Supply) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
            && (this.getAddr() == null ? other.getAddr() == null : this.getAddr().equals(other.getAddr()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getContact() == null ? other.getContact() == null : this.getContact().equals(other.getContact()))
            && (this.getCredit() == null ? other.getCredit() == null : this.getCredit().equals(other.getCredit()))
            && (this.getInputTime() == null ? other.getInputTime() == null : this.getInputTime().equals(other.getInputTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
        result = prime * result + ((getAddr() == null) ? 0 : getAddr().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getContact() == null) ? 0 : getContact().hashCode());
        result = prime * result + ((getCredit() == null) ? 0 : getCredit().hashCode());
        result = prime * result + ((getInputTime() == null) ? 0 : getInputTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", desc=").append(desc);
        sb.append(", addr=").append(addr);
        sb.append(", code=").append(code);
        sb.append(", tel=").append(tel);
        sb.append(", contact=").append(contact);
        sb.append(", credit=").append(credit);
        sb.append(", inputTime=").append(inputTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}